package org.hongrun.controll;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

@Controller
@RestController
//接受异步请求
@CrossOrigin(origins = "http://localhost:5173")  // 注解方式
@RequestMapping("/api")
public class baoming {
    @PostMapping ("/baoming")
    public int baoming(@RequestBody Object baoming) {
        System.out.println(baoming);
        return 200;
    }

}
